<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*function fun(a,b){
				return a * b ;
			}
			var resule = fun(2,3)
			console.log(resule);*/
			/*function fun(a,b){
				return a + b ;
			}
			
			var resule = fun(2,3)
			console.log(resule);
			
			
			function fun(a,b){
				return a - b ;
			}
			
			var resule = fun(2,3)
			console.log(resule);
			
			
			function fun(a,b){
				return a / b ;
			}
			
			var resule = fun(2,3)
			console.log(resule);*/
			
			
				
				/*(function(){
				//2
				function maxV(a,b,c){
					return Math.max(a,b,c);
				}
				console.log(maxV(1,2,3));
				console.log(maxV(1,3,2));
				console.log(maxV(2,1,3));
				console.log(maxV(2,3,1));
				console.log(maxV(3,2,1));
			}())*/
			
			/*var s = {	
				
			}
			s.da=function(a,b,c){
					return Math.max(a,b,c);
			}

			console.log(s.da(1,2,3));
			console.log(s.da(1,3,2));
			console.log(s.da(2,1,3));
			console.log(s.da(2,3,1));
			console.log(s.da(3,2,1));
				*/
			
			/*function fun(a,b,c,d){
				if(c>d){
					alert("警告！！！程序错误！！程序错误！！！")
				}else if(a*b > 500){
					alert("收您"+ d + "元"+ "找您"+ (d - (a*b)*0.8) +"元")
				}else if(a*b==d){
					alert("收您" + d + "元" + "找您" + (d-a*b) +"元")
				}
				
			}
			fun(100,7,700,1000)*/
			function fn(a){
				if (a == 1) {
					return 1;
				} else{
					return a + fn(a - 1)
				}
			}
			var x = fn(101);
			console.log(x); 
			
			
			
			
				
			
		</script>
	</body>
</html>
